package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.peace.hospital.entity.common.Staffinfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xie
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Outwarehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "outid", type = IdType.AUTO)
    private Integer outid;

    private Integer staid;

    private Date outdate;
    @TableField(exist = false)
    private Staffinfo staffinfo;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getOutid() {
        return outid;
    }

    public void setOutid(Integer outid) {
        this.outid = outid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Date getOutdate() {
        return outdate;
    }

    public void setOutdate(Date outdate) {
        this.outdate = outdate;
    }

    public Staffinfo getStaffinfo() {
        return staffinfo;
    }

    public void setStaffinfo(Staffinfo staffinfo) {
        this.staffinfo = staffinfo;
    }

    @Override
    public String toString() {
        return "Outwarehouse{" +
                "outid=" + outid +
                ", staid=" + staid +
                ", outdate=" + outdate +
                ", staffinfo=" + staffinfo +
                '}';
    }
}
